package com.weitu.emergency.service.impl;

import com.weitu.emergency.entity.TeamAndRegion;
import com.weitu.emergency.mapper.TeamAndRegionMapper;
import com.weitu.emergency.service.TeamAndRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangqingxi 2017/5/23
 */
@Service
public class TeamAndRegionServiceImpl implements TeamAndRegionService {

    private final TeamAndRegionMapper teamAndRegionMapper;

    @Autowired
    public TeamAndRegionServiceImpl(TeamAndRegionMapper teamAndRegionMapper) {
        this.teamAndRegionMapper = teamAndRegionMapper;
    }

    @Override
    public List<TeamAndRegion> findByTeamId(String emergencyTeamId) {
        return teamAndRegionMapper.findByTeamId(emergencyTeamId);
    }
}
